package com.example.weather.mapper;

import com.example.weather.po.City;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CityMapper {
    @Select("SELECT code, name FROM city")
    List<City> getAllCities();

}
